package com.novax.ex.activity.provider.handler.provider;

import com.novax.ex.common.constant.MqConstants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.stereotype.Component;

import jakarta.annotation.Resource;

/**
 * Description: 活动冻结ET解锁provider
 *
 * @author shaw
 * @date 2023/6/27 11:27
 */
@Slf4j
@Component
public class ActivityUnlockProvider {

    @Resource
    private AmqpTemplate amqpTemplate;

    /**
     * 邀请人解锁数量计算
     */
    public void inviterUnlock(String json){
        amqpTemplate.convertAndSend(MqConstants.Queue.SPOT_INVITER_UNFROZEN, json);
    }

    /**
     * 计算结果现货账户奖励发放
     */
    public void rewardUnlockSend(String json){
        amqpTemplate.convertAndSend(MqConstants.Queue.SPOT_INVITATION_REWARD_SEND, json);
    }
}
